// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** 此处后端没有提供注释 POST /promptSelf/add */
export async function addPromptSelf(
  body: API.PromptSelfAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong>('/promptSelf/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /promptSelf/delete */
export async function deletePromptSelf(body: API.DeleteRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean>('/promptSelf/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /promptSelf/get */
export async function getPromptSelf(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getPromptSelfParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePromptSelf>('/promptSelf/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /promptSelf/list/page */
export async function listPromptSelfByPage(
  body: API.PromptSelfQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePagePromptSelf>('/promptSelf/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /promptSelf/list/page/vo */
export async function listPromptSelfVoByPage(
  body: API.PromptSelfQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePagePromptSelfVO>('/promptSelf/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 POST /promptSelf/update */
export async function updatePromptSelf(
  body: API.PromptSelfUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>('/promptSelf/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
